<script>
export default {
  name: "AnswerAnalysis",
  props: {
    analysis: {
      type: String,
      default: ""
    },
    title:{
      default: "试题解析",
      type: String
    }
  }
}
</script>

<template>
  <view class="AnswerAnalysis">
    <text>试题解析</text>
    <view class="analysis">
      <rich-text :nodes="analysis ? analysis : '暂无'"></rich-text>
    </view>

  </view>
</template>

<style scoped lang="scss">
.AnswerAnalysis {
  margin-top: 30px;
  text{
    color: #333333;
    font-weight: bold;
    font-size: 18px;
  }
  .analysis{
    margin-top: 18px;
    color: #333333;
    background-color:#F9F9F9 ;
    padding: 22px 22px 42px 22px;
    border-radius: 12px;
  }
}
</style>